package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:后台用户角色表
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="后台用户角色表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_role")
public class UmsRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;
    @ApiModelProperty(value = "后台用户数量")
    @TableField("admin_count")
    private Integer adminCount;
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "启用状态：0->禁用；1->启用")
    @TableField("status")
    @TableLogic
    private Integer status;
    @TableField("sort")
    private Integer sort;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String DESCRIPTION = "description";

    public static final String ADMIN_COUNT = "admin_count";

    public static final String CREATE_TIME = "create_time";

    public static final String STATUS = "status";

    public static final String SORT = "sort";

}
